package com.music.dao;

import com.music.entity.Mv;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Classname MvMapper
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/7/4 10:56
 * @Created by Administrator
 */
@Repository
public interface MvMapper {

    /**
     * 根据参数查询Mv
     * @param map
     * @return
     */
    List<Mv> selectBycondition(Map<String,Object> map);

    /**
     * 根据主键查询Mv
     * @param mvId
     * @return
     */
    Mv selectByPrimaryKey(String mvId);

    /**
     * 查找播放量前五的MV
     * @return
     */
    List<Mv> findMvCount();
}
